<template>
	<view class="login">
		<view class="action">
			<view @click="checkAgree" v-if="!isAgree" class="btn">微信授权─键登录</view>
			<button v-else class="btn active" type="default" open-type="getPhoneMumber"
				@getphonenumberm"=handleGetPhoneNumber">微信授权—键登录 </button>
			<view class="read">
				<checkbox-group @change=checkboxChange">
					<label class="label">
						<checkbox value="A"></checkbox>
						<text>我已阅读并同意</text>
					</label>
				</checkbox-group>
				<view class="word">
					<text class="blue" @click="goOther(2)">《用户协议》</text>
					和
					<text class="blue" @click="goOther(3)">《隐私政策》</text>
				</view>
			</view>
		</view>
		<uni-popup :mask-click="false" ref="popup" type="center">
			<view class="modal">
				<view class="tip">
					系统要想获取你的头像和昵称</view>
				<button @tap="getUserProfile" class="btn">同意</button>
			</view>

		</uni-popup>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			
		},
	}
</script>